package com.t10;

/**
 * Created by xuyiwei on 2018/7/22.
 */
interface E91{
    void say();
}
public class E9 {
    public E91 sayReturn(boolean t){
        if(t){
            class inner implements E91{
                @Override
                public void say() {
                    System.out.println("aaaaaaaa");
                }
            }
            return new inner();
        }else{
            return null;
        }

    }

    public static void main(String[] args) {
        E9 e = new E9();
        e.sayReturn(true).say();
    }
}
